home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
CALC1.ARJ
/
CALC.DOC
< prev
next >
Wrap
Text File
|
1992-11-05
|
7KB
|
188 lines
Point Calculator Ver 1.0
By: Joe Thompson
8-2-92
Compuserve ID: 71321,1177
EET BBS Fido-net address 1:116/24
615-325-7800
Disclaimer and limit of liability
Joe Thompson makes no warranty of any kind, either express
or implied, including but not limited to implied warranties
of merchantability and fitness for a particular purpose,
with respect to this software.
In no event shall Joe Thompson be liable for any damages
(including damages for loss of business profits, business
interruption, or loss of business information) arising out of
the use of this software.
Summary
Point Calculator is a calculator program for Autocad that
takes advantage of the release 12 dialog interface to pro
vide a full function calculator plus the ability to get
and manipulate points. These points are then returned to
the current command for use. The calculator can be called
transparently so it is ideally suited to run inside the
line, circle, move or any other drawing command that
requires a point coordinate or real number distance.
Requirements
This program requires Autocad release 12+.
Installation
The Point Calculator is very easy to install simply copy
calc.exp and calc.dcl into your current Autocad path and
issue the following command at the Autocad command
prompt:
(xload"calc")
This loads the program and assigns it to key <F10> by use
of ANSI escape sequences. This means that any time you hit
the <F10> key calc starts and runs transparently. Calc may
be incorperated into your existing menus or run from the
command prompt by entering:
'calc
The Point Calculator may also be set to load every time
Autocad runs by entering the line
CALC
into your acad.ads file.
Operation
The operation of Point Calculator is simply and straight
forward. the left side of the dialog contains a simply
scientific calculator with all basic functions including
+, -, *, /, sin, cos, tan, square, square root, inverse
sin , cos, tan, PI, sto in memory, rcl from memory, Ce
clear entry, and which deletes 1 character from the
end of an entry. The right bottom of the calulator also
has two additional buttons IN and MM. These buttons
provide conversion between decimal systems. The Select
button on the bottom right allows the selection of a
distance obtained from selecting two points on an Autocad
drawing. The point selection osnap mode defaults to end
and int so if you want something different you will have to
enter it yourself. The result obtained from the distance
between the two selected points is entered into the calcul
ators main register for manipulation. The INV button
controls whether an sin or inverse sin is preformed.
The Right side of the calculator contains the point manipu
lation registers. There are three registers one for X, one
for Y and one for Z. When the program starts it reads the
value of the LASTPOINT Autocad syatem variable and places
these coordinate values into the programs point registers.
These values may now be edited. The buttons surrounding
the point registers are for transferring the value into
the calculator register and preforming simply addition and
subtraction on the point values. These buttons are defined
as follows.
X :
This button transfers the contents of the calculator
register into the X point register.
X :
This button transfers the contents of the X point
register into the calculator register.
X +:
This button transfers takes the value in the calculator
register adds it to the X point register and places the
result in the X point register.
X -:
This button transfers takes the value in the calculator
register subtracts it from the X point register and places the
result in the X point register.
Get Pt X:
This button allows the user to select a point on the screen
and places the X coordinate of the selected point in the X
point register.
Y :
This button transfers the contents of the calculator
register into the Y point register.
Y :
This button transfers the contents of the Y point
register into the calculator register.
Y +:
This button transfers takes the value in the calculator
register adds it to the Y point register and places the
result in the Y point register.
Y -:
This button transfers takes the value in the calculator
register subtracts it from the Y point register and places the
result in the Y point register.
Get Pt Y:
This button allows the user to select a point on the screen
and places the Y coordinate of the selected point in the Y
point register.
Z :
This button transfers the contents of the calculator
register into the Z point register.
Z :
This button transfers the contents of the Z point
register into the calculator register.
Z +:
This button transfers takes the value in the calculator
register adds it to the Z point register and places the
result in the Z point register.
Z -:
This button transfers takes the value in the calculator
register subtracts it from the Z point register and places the
result in the Z point register.
Get Pt Z:
This button allows the user to select a point on the screen
and places the Z coordinate of the selected point in the Z
point register.
Get Point:
This button allows the user to select a point on the screen
and places all three coordinate values into the point register.
The Return Point toggle at the bottom of the screen controls
whether a point value is returned or a real number value. The
toggle defaults to on so it will return a point value. To return
a real value simply turn it off.